package ar.com.gestion.vistas;

import java.awt.FlowLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;

import ar.com.gestion.dominio.Vendedor;
import ar.com.gestion.springcontext.SpringContext;

public class PanelUsuario extends JPanel{

	
	private Vendedor vendedor = (Vendedor) SpringContext.getContext()
			.getBean("vendedor");
	
	public PanelUsuario(){
		
		
		setLayout(new FlowLayout());
		add(new JLabel("Nombre: "+vendedor.getNombre()));
		add(new JLabel("Apellido: "+vendedor.getApellido()));
		
		
	}
	
	
	
	
}
